package com.power.project.model.vo.feignvo;


import com.power.project.model.Ww_tag;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 标签实体类
 */
@Data
@NoArgsConstructor
public class Tag {

    @ApiModelProperty(value = "corpid_tagid")
    private String id;

    @ApiModelProperty(value = "标签id")
    private String tagid;

    @ApiModelProperty(value = "标签名称")
    private String name;

    @ApiModelProperty(value = "企业id")
    private String corpid;

    public Tag(Ww_tag tag) {
        this.id = tag.getId().toString();
        this.tagid = tag.getTagid();
        this.name = tag.getName();
        this.corpid = tag.getTenantid();
    }
}